package epimarket.beans;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Produit implements Serializable {
	private int id;
	private int id_sous_categorie;
	private int id_marque;
	private int id_prix;
	private String modele;
	private String denomination;
	private String description;
	private int poids;
	private int stock;

	public Produit() {
		this.id = -1;
		this.id_sous_categorie = -1;
		this.id_marque = -1;
		this.id_prix = -1;
		this.modele = "";
		this.denomination = "";
		this.description = "";
		this.poids = -1;
		this.stock = -1;
	}
	
	public String toString() {
		String str = "";
		str += "id = " + this.id + "<br />";
		str += "id_sous_categorie = " + this.id_sous_categorie + "<br />";
		str += "id_marque = " + this.id_marque + "<br />";
		str += "id_prix = " + this.id_prix + "<br />";
		str += "modele = " + this.modele + "<br />";
		str += "denomination = " + this.denomination + "<br />";
		str += "description = " + this.description + "<br />";
		str += "poids = " + this.poids + "<br />";
		str += "stock = " + this.stock + "<br />";
		return str;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int idd) {
		this.id = idd;
	}

	public int getId_sous_categorie() {
		return id_sous_categorie;
	}

	public void setId_sous_categorie(int id_sous_categorie) {
		this.id_sous_categorie = id_sous_categorie;
	}

	public int getId_marque() {
		return id_marque;
	}

	public void setId_marque(int id_marque) {
		this.id_marque = id_marque;
	}

	public int getId_prix() {
		return id_prix;
	}

	public void setId_prix(int id_prix) {
		this.id_prix = id_prix;
	}

	public String getModele() {
		return modele;
	}

	public void setModele(String modele) {
		this.modele = modele;
	}

	public String getDenomination() {
		return denomination;
	}

	public void setDenomination(String denomination) {
		this.denomination = denomination;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getPoids() {
		return poids;
	}

	public void setPoids(int poids) {
		this.poids = poids;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}
}